package cn.softeem.tushu.po;

import java.util.List;

public class User {
    /*  CREATE TABLE `t_user` (
              `uid` char(32) NOT NULL,
    `loginname` varchar(50) DEFAULT NULL,
    `loginpass` varchar(50) DEFAULT NULL,
    `email` varchar(50) DEFAULT NULL,
    `status` tinyint(1) DEFAULT NULL,
    `activationCode` char(64) DEFAULT NULL,
      PRIMARY KEY (`uid`),
      UNIQUE KEY `loginname` (`loginname`)
              ) ENGINE=InnoDB DEFAULT CHARSET=utf8;*/
    private String uid;
    private String loginname;
    private String loginpass;
    private String email;
    private Integer status;
    private String activationCode;


    public User() {
    }

    public User(String uid, String loginname, String loginpass, String email, Integer status, String activationCode) {
        this.uid = uid;
        this.loginname = loginname;
        this.loginpass = loginpass;
        this.email = email;
        this.status = status;
        this.activationCode = activationCode;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getLoginname() {
        return loginname;
    }

    public void setLoginname(String loginname) {
        this.loginname = loginname;
    }

    public String getLoginpass() {
        return loginpass;
    }

    public void setLoginpass(String loginpass) {
        this.loginpass = loginpass;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getActivationCode() {
        return activationCode;
    }

    public void setActivationCode(String activationCode) {
        this.activationCode = activationCode;
    }



    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", loginname='" + loginname + '\'' +
                ", loginpass='" + loginpass + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", activationCode='" + activationCode + '\'' +
                '}';
    }
}
